<?php

declare(strict_types=1);

namespace App\Request\Launch;

use App\Request\Request;

class InitInfoReq extends Request
{
    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'appId' => 'required|integer:strict',
            'channel' => 'required|string',
            'version' => 'required|string',
            'oaid' => 'present|string',
            'ua' => 'present|string',
            'model' => 'required|string',
            'businessId' => 'present|string',
            'currentTime' => 'required', // 客户端当前时间，秒级
            'hasProxy' => 'required|integer:strict', // 是否开代理了
            'adbEnabled' => 'required', // 是否开启adb调试
            'isCharging' => 'required', // 是否在充电
            'chargingType' => 'required', // 充电类型 AC Adapter：充电器充电, USB：USB充电, Wireless：无线充电, Unknown：未知
            'isRooted' => 'required', // 是否root了手机
            'hasSimCard' => 'required|integer:strict', // 是否插卡
            'hasVpn' => 'required|integer:strict', // 是否开了VPN
        ];
    }
}
